Skip to content

Implement disable ignores, a flag which disables all type ignores#19939

Draft
wyattscarpenter wants to merge 4 commits intopython:masterfrom
wyattscarpenter:disable_ignores
Draft

Implement disable ignores, a flag which disables all type ignores#19939
wyattscarpenter wants to merge 4 commits intopython:masterfrom
wyattscarpenter:disable_ignores

Conversation

@wyattscarpenter
Copy link
Copy Markdown
Contributor

This is available as a command-line flag and a global configuration option. This commit also includes documentation and tests for this feature. Fixes #13201

This is available as a command-line flag and a global configuration option. This commit also includes documentation and tests for this feature. Fixes python#13201
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@wyattscarpenter
Copy link
Copy Markdown
Contributor Author

wyattscarpenter commented Apr 4, 2026

Why do my two tests now fail, but only for the two "Parallel tests with py314-ubuntu" checks? (Not even including parallel tests with windows.) Random luck relating to some known flakiness (that I haven't heard of)? Do I not understand something? Should this be listed in OPTIONS_AFFECTING_CACHE or something?

@github-actions

This comment has been minimized.

…blem

I'm just guessing that this might be why my two tests fail, but only for the two 'Parallel tests with py314-ubuntu' checks. (Not even including parallel tests with windows.)

since this isn't a per-module option, we add it to the list that isn't that
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 5, 2026

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@wyattscarpenter
Copy link
Copy Markdown
Contributor Author

Well, as I have no further ideas as to what is wrong, I guess I'll just draft this PR for now.

@wyattscarpenter wyattscarpenter marked this pull request as draft April 5, 2026 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a way to ignore type: ignore, disabled error codes

1 participant